package com.company.test16;

import javax.swing.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

/**
 * Created by Administrator on 2016.6.19.
 */
public class Test16_08 extends JFrame{
    public static void main(String[] args){
        Test16_07 frame=new Test16_07();
        frame.pack();
        frame.setLocationRelativeTo(null);
        frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        frame.setTitle("AdaterDemo");
        frame.setVisible(true);
    }

    public Test16_08() {
        addWindowListener(new WindowAdapter() {
            @Override
            public void windowActivated(WindowEvent e) {
                super.windowActivated(e);
            }
        });
    }
}
